home *** CD-ROM | disk | FTP | other *** search
/ Shock - The Game / Shock The Game.iso / pc / casts / old.cst / 00003_addHotSpot.ls < prev    next >
Encoding:
Text File  |  1997-04-08  |  483 b   |  25 lines

  1. --property ancestor, PmyLocH
  2. --
  3. --global
  4. --
  5. --
  6. --on new me, whichSprite, whichCell, whichLocH, whichHandler
  7. --  
  8. --  set ancestor to new(script "constantHotSpot", whichSprite, whichCell, whichHandler)
  9. --  
  10. --  set the loch of sprite whichSprite = whichLoch
  11. --  set PmyLoch = whichLocH
  12. --  
  13. --  return me
  14. --end
  15. --
  16. --
  17. --on moveOn
  18. --  set the locH of sprite the PmySprite of ancestor = PmyLoch
  19. --end
  20. --
  21. --
  22. --on moveOff
  23. --  set the locH of sprite the PmySprite of ancestor = -5000
  24. --end
  25.